//1医院设置的获取分页列表请求的参数类型
//hosname,hoscode是可选的
export interface getHosSetListParamsType {
  page: number,
  limit: number,
  hosname?: string,
  hoscode?: string
}

//2.医院设置的获取分页列表请求的返回值的参数类型
//records中每一项的类型,暴露出去(records是一个数组,数组中有很多对象,对象的类型都是固定的)这个位置设置的是每个对象的类型
export interface getHosSetListItemsType {
  id: number,
  createTime: string,
  updateTime: string,
  isDeleted: number,
  param: object,
  hosname: string,
  hoscode: string,
  apiUrl: string,
  signKey: string,
  contactsName: string,
  contactsPhone: string,
  status: 0 | 1
}

//records的类型是上面的对象组成的数组
export type getHosSetListRecordsType = getHosSetListItemsType[]
//返回参数完整类型
export interface getHosSetListReturnType {
  records: getHosSetListRecordsType,
  total: number,
  size: number,
  current: number,
  orders: any[],
  hitCount: boolean,
  searchCount: boolean,
  pages: number
}



//3.添加医院的参数类型  返回值类型(返回值是null,不需要写返回值类型)

export interface addHospitalParamsType {
  apiUrl: string,
  contactsName: string,
  contactsPhone: string,
  hoscode: string,
  hosname: string,
}

//4.更新医院的参数类型  

export interface updateHosSetParamsType extends addHospitalParamsType {
 id:string
}